package com.ulife.order.api.response;

import com.ulife.common.gateway.utils.annotation.Description;
import com.ulife.order.api.response.cart.CartGroupsDTO;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Ulife- on 2016/1/19.
 */
@Description("【订单结算页,详情页】商品分组信息")
public class ItemGroupInfo implements Serializable {
    @Description("商品组类型")
    public String  mode; //self consignation
    @Description("商品信息")
    public List<ItemInfo>  items;
    @Description("购物车商品信息（新的结算页，商品以购物车形式的展示）")
    public CartGroupsDTO  cartGroupInfo;
    @Description("优惠列表")
    public List<PromotionInfo>  promotions;
    @Description("优惠券组信息")
    public List<CouponGroupInfo> couponGroups;
    @Description("新优惠券组信息")
    public List<CouponGroupInfoNew> couponGroupsNew;
    @Description("金额信息")
    public CalculationInfo calculation;
    @Description("重量")
    public double weight;
    @Description("超重")
    public boolean overweight;
    @Description("商品数量")
    public int itemCount;
    @Description("赠品数量")
    public int giftCount;


    public CartGroupsDTO getCartGroupInfo() {
        return cartGroupInfo;
    }

    public void setCartGroupInfo(CartGroupsDTO cartGroupInfo) {
        this.cartGroupInfo = cartGroupInfo;
    }

    public boolean isOverweight() {
        return overweight;
    }

    public void setOverweight(boolean overweight) {
        this.overweight = overweight;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public List<ItemInfo> getItems() {
        return items;
    }

    public void setItems(List<ItemInfo> items) {
        this.items = items;
    }

    public List<PromotionInfo> getPromotions() {
        return promotions;
    }

    public void setPromotions(List<PromotionInfo> promotions) {
        this.promotions = promotions;
    }

    public CalculationInfo getCalculation() {
        return calculation;
    }

    public void setCalculation(CalculationInfo calculation) {
        this.calculation = calculation;
    }

    public int getItemCount() {
        return itemCount;
    }

    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }


    public List<CouponGroupInfo> getCouponGroups() {
        return couponGroups;
    }

    public void setCouponGroups(List<CouponGroupInfo> couponGroups) {
        this.couponGroups = couponGroups;
    }


    public int getGiftCount() {
        return giftCount;
    }

    public void setGiftCount(int giftCount) {
        this.giftCount = giftCount;
    }




    public List<CouponGroupInfoNew> getCouponGroupsNew() {
        return couponGroupsNew;
    }

    public void setCouponGroupsNew(List<CouponGroupInfoNew> couponGroupsNew) {
        this.couponGroupsNew = couponGroupsNew;
    }

}
